package edu.gdkm.staticdemo;




import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        Teacher[] teachers = new Teacher[1000];
        try {
            CsvReader csvReader = new CsvReader("data/scores.csv", ','); // 指定CSV文件路径和分隔符
            String[] names = csvReader.readCsv(); // 读取CSV文件并解析数据到列表中
            for (int i = 0; i < names.length; i++) {
                teachers[i]=new Teacher(names[i]);
                System.out.println(teachers[i].toString());
            }
            System.out.println(Teacher.id);
        } catch (IOException e) {
            e.printStackTrace(); // 处理文件读取异常，例如文件不存在或读取错误等
        }
    }
}
